import Vue from 'vue'
import './plugins/vuetify'
import App from './App.vue'
import router from './router/index'
import store from './store/store' // vuex
import 'echarts/theme/macarons' // 皮肤
import './plugins/element.js'   // element-ui插件
import './assets/scss/index.scss' //样式
import common from './utils/common.js'
// import '@/element-variables.scss'
import '@/assets/baseIcon/iconfont.css'// 引入字体文件
import '@/assets/iconfont4/iconfont.css'// 引入字体文件
import '@/assets/dataSourceIcon/iconfont.css' // 引入国家和字体图标
import '@/assets/dataSourceIcon/iconfont.js'
import * as axios from './utils/request'
import axioss from 'axios'
import URL from './utils/url'
import VueCookie from 'vue-cookies' 
Vue.use(VueCookie)
Vue.use(common)




// 国际化
import i18n from './plugins/i18n/i18n'

// 复制
// import VueClipBoard from 'vue-clipboard2'
// Vue.use(VueClipBoard)

// 无缝滚动
import scroll from 'vue-seamless-scroll'
Vue.use(scroll)

// vuescroll  自定义滚动条样式
import vuescroll from 'vuescroll/dist/vuescroll-native'
Vue.use(vuescroll)

import { DateManage } from './utils/debounce';
Vue.prototype.$DateManag = DateManage;

import {ThousandthSign} from './utils/ThousandthSign'
Vue.prototype.$ThousandthSign = ThousandthSign
// md5
import md5 from 'js-md5'
Vue.prototype.$md5 = md5

// 引入Bus总线
import Bus from '@/utils/Bus'
Vue.prototype.$Bus = Bus

// moment
import moment from 'moment'
window.moment = moment

// loading
import {loading1, loading2} from '@/components/loading/index'
Vue.use(loading1)
Vue.use(loading2)

// xlsx
import XLSX from 'xlsx'
window.XLSX = XLSX

// echarts
// import echarts from 'echarts'
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts  // 全局echarts
// import {
//   LineChart,
//   BarChart,
//   PieChart,
// } from 'echarts/charts'
// 引入提示框，标题，直角坐标系，数据集，内置数据转换器等组件
// import {
//   TitleComponent,
//   TooltipComponent,
//   GridComponent,
//   DatasetComponent,
//   TransformComponent
// } from 'echarts/components'
// 标签自动布局，全局过渡动画等特性
// import { LabelLayout, UniversalTransition } from 'echarts/features'
// 引入Canvas渲染器或Svg渲染器，CanvasRenderer或SVGRenderer
// import { CanvasRenderer } from 'echarts/renderers'
// echarts.use([
//   // 
//   TitleComponent,
//   TooltipComponent,
//   GridComponent,
//   DatasetComponent,
//   TransformComponent,
//   // 
//   LabelLayout, 
//   UniversalTransition,
//   // 
//   LineChart,
//   BarChart,
//   PieChart,
//   // 
//   CanvasRenderer
// ])
// Vue.prototype.$echarts = echarts  // 全局echarts

// G6
import * as G6 from '@antv/g6'
window.G6 = G6


// swiper
import 'swiper/swiper-bundle.min.css'

Vue.prototype.$get = axios.get
Vue.prototype.$getBlob = axios.getBlob
Vue.prototype.$post = axios.post
Vue.prototype.$delete = axios.axiosDelete
Vue.prototype.$put = axios.put
Vue.prototype.$Url = URL
Vue.prototype.$cookie = VueCookie
Vue.prototype.$axios = axioss

Vue.config.productionTip = false
new Vue({
  router,
  i18n,
  store,
  render: h => h(App)
}).$mount('#app')

